package com.itelite.domain.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 沈洋 邮箱:1845973183@qq.com
 * @create 2021/8/9-20:48
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UploadUser implements Serializable {
    private static final long serialVersionUID = -263082294181432066L;
    private Integer userId;
    @Excel(name = "序号")
    private Integer number;
    @Excel(name = "学号")
    @NotBlank(message = "不能为空")
    @Length(max = 10,min = 8)
    private String studentId;
    @Excel(name = "姓名")
    @NotBlank(message = "不能为空")
    private String realName;
    @Excel(name = "性别",replace = {"男_1", "女_0"})
    @NotNull(message = "不能为空")
    private Integer gender;
    @Excel(name = "年级")
    @NotNull(message = "不能为空")
    private Integer grade;
    @Excel(name = "小组")
    @NotBlank(message = "不能为空")
    private String group;
    @Excel(name = "手机号")
    @NotNull(message = "不能为空")
    private String mobile;
    @Excel(name = "QQ")
    @NotNull(message = "不能为空")
    private String qq;
    @Excel(name = "邮箱")
    @NotNull(message = "不能为空")
    private String email;
    private String username;
    private String password;
    private String roles;
}
